﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace ConsoleApplication1
{
    class Fenster : IAktor
    {
        private int _Status;
        private string _ID;

        public int Status
        {
            get { return _Status; }
            set 
            {  
                switch(value)
                {
                    default: _Status = 0;
                        Console.WriteLine("Fehler: Fenster - Status kann nicht " + value.ToString() + " sein.");
                        break;
                    // Fenster geschlossen
                    case 0: _Status = 0;
                        break;
                    // Fenster gekippt
                    case 1: _Status = 1;
                        break;
                    // Fenster geöffnet
                    case 2: _Status = 2;
                        break;
                }
            }
        }

        // Fenster Konstruktor
        public Fenster(string ID)
        {
            // Status per Zufall 0, 1 oder 2
            _Status = Program.RandomNumber(0,2);
            _ID = ID;
        }

        public string ID
        {
            get { return _ID; }
        }



        
    }
}
